package com.bootdo.market.service.impl;

import com.bootdo.market.dao.ProductChannelProfitDao;
import com.bootdo.market.domain.ProductChannelProfitDO;
import com.bootdo.market.service.ProductChannelProfitService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public class ProductChannelProfitServiceImpl implements ProductChannelProfitService {
    @Autowired
    private ProductChannelProfitDao productChannelProfitDao;

    @Override
    public ProductChannelProfitDO get(Integer id) {
        return productChannelProfitDao.get(id);
    }

    @Override
    public List<ProductChannelProfitDO> list(Map<String, Object> map) {
        return productChannelProfitDao.list(map);
    }

    @Override
    public int count(Map<String, Object> map) {
        return productChannelProfitDao.count(map);
    }

    @Override
    public int save(ProductChannelProfitDO productChannelProfit) {
        return productChannelProfitDao.save(productChannelProfit);
    }

    @Override
    public int update(ProductChannelProfitDO productChannelProfit) {
        return productChannelProfitDao.update(productChannelProfit);
    }

    @Override
    public int remove(Integer id) {
        return productChannelProfitDao.remove(id);
    }

    @Override
    public int batchRemove(Integer[] ids) {
        return productChannelProfitDao.batchRemove(ids);
    }

}
